import request from '@/utils/request';

export const saveEditorConfig = (params: any) => {
  return request({
    url: '/logic/website/save',
    method: 'post',
    data: params
  });
};

/**
 * 修改站点管理
 * @param data
 */
export const updateWebsite = (data: any) => {
  return request({
    url: '/logic/website',
    method: 'put',
    data: data
  });
};

export const getEditorConfig = (id: any) => {
  return request({
    url: `/logic/websiteCompontRelation/config/${id}`,
    method: 'get'
  });
};
